package com.ply.dao;

import com.ply.pojo.RolePermission;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;


public interface RolePermissionDao extends JpaRepository<RolePermission,Integer>, JpaSpecificationExecutor<RolePermission> {

    /**
     * 通过rid查询角色权限表
     * @param rid
     * @return RolePermission 集合
     */
    List<RolePermission> findAllByRid(List<Integer> rid);

}
